<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  
</head>
<body>
  <div id="app">
    <!-- <button v-bind:a="a">按钮</button>
    <input type="text" v-model.number="wd">
    <img v-bind:src="src" v-bind:width="wd" alt=""> -->
    <button :a="a">按钮</button>
    <input type="text" v-model.number="wd">
    <img :src="src" :width="wd" alt="">
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      data: {
        a: '这是自定义属性的值',
        src: 'https://t7.baidu.com/it/u=993577982,1027868784&fm=193&f=GIF',
        wd: 100
      }
    })
    vm.$mount('#app');
  </script>
</body>
</html>